gtk4.git
4 years agoUse color glyph information from Pango
Matthias Clasen [Wed, 1 Sep 2021 05:38:44 +0000 (01:38 -0400)]
Use color glyph information from Pango

Pango now sets a bit in PangoGlyphVisAttr for
color glyphs, so we don't need to do that
ourselves anymore.

4 years agoUpdate Dutch translation
Nathan Follens [Tue, 31 Aug 2021 15:54:45 +0000 (15:54 +0000)]
Update Dutch translation

(cherry picked from commit 9aa08dd1b8b633990ac73efb76d9524f7ded32dc)

4 years agoUpdate Persian translation
eshagh shahidani [Tue, 31 Aug 2021 14:41:54 +0000 (14:41 +0000)]
Update Persian translation

(cherry picked from commit 7691c94a3732e0349a4c868982159f613d6222dc)

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 31 Aug 2021 13:15:47 +0000 (13:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

editable: Clarify the docs

See merge request GNOME/gtk!3906

4 years agoeditable: Clarify the docs
Matthias Clasen [Tue, 31 Aug 2021 12:41:45 +0000 (08:41 -0400)]
editable: Clarify the docs

Make it clear that your class must have all the editable properties
already before you call the (confusingly named) function
gtk_editable_install_properties.

4 years agoMerge branch 'default-settings-non-debug' into 'master'
Matthias Clasen [Mon, 30 Aug 2021 18:09:28 +0000 (18:09 +0000)]
Merge branch 'default-settings-non-debug' into 'master'

Revert "reftests: Enforce default settings"

See merge request GNOME/gtk!3903

4 years agogdk: Make GDK_DEBUG=default-settings unconditional
Matthias Clasen [Mon, 30 Aug 2021 15:01:55 +0000 (11:01 -0400)]
gdk: Make GDK_DEBUG=default-settings unconditional

Our tests use this settings, so we should respect it
in non-debug builds as well.

4 years agoRevert "reftests: Enforce default settings"
Matthias Clasen [Mon, 30 Aug 2021 15:01:22 +0000 (11:01 -0400)]
Revert "reftests: Enforce default settings"

This reverts commit 4e4f57e091020750d66134c212d7778c17d96c20.

This should not be necessary, since we have GDK_DEBUG=default-settings.

4 years agoMerge branch 'wip/smcv/compose-files' into 'master'
Matthias Clasen [Mon, 30 Aug 2021 12:52:54 +0000 (12:52 +0000)]
Merge branch 'wip/smcv/compose-files' into 'master'

Fix Compose handling on big-endian host architectures

Closes #4217

See merge request GNOME/gtk!3902

4 years agocompose: Update sequences from libX11 1.7.2
Simon McVittie [Mon, 30 Aug 2021 09:54:43 +0000 (10:54 +0100)]
compose: Update sequences from libX11 1.7.2

This adds support for sequences like <Compose>,G,u -> capital G with
breve. Previously, only a capital U was accepted for E, G, I and O
(but a lower-case u was accepted for A and U for some reason).

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agocompose: Document how to get compose-parse input from libX11 source
Simon McVittie [Mon, 30 Aug 2021 09:48:49 +0000 (10:48 +0100)]
compose: Document how to get compose-parse input from libX11 source

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agocompose: Generate endian-dependent compact Compose data
Simon McVittie [Mon, 30 Aug 2021 09:13:33 +0000 (10:13 +0100)]
compose: Generate endian-dependent compact Compose data

The GtkComposeTable cache is always in big-endian format and is
byteswapped on load for the more common little-endian CPUs, but
init_builtin_table() in GtkIMContextSimple can't byteswap the built-in
data without copying it, which is undesirable. Pregenerate both big-
and little-endian compose data, and compile the correct flavour into
each build of GTK. This fixes failure of the composetable test when
building for a big-endian architecture such as s390x and (traditional,
big-endian) powerpc.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217
Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 04:37:49 +0000 (04:37 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

fontbutton: Make sure the window is on the same display

See merge request GNOME/gtk!3901

4 years agocontentdeserializer: Fix some API awkwardness
Benjamin Otte [Mon, 23 Aug 2021 05:06:37 +0000 (07:06 +0200)]
contentdeserializer: Fix some API awkwardness

Allow uninitialized GValues to be passed. Makes life easier for the
inspector code I'm writing.

4 years agonode-editor: Allow dragging and dropping the center picture
Benjamin Otte [Fri, 20 Aug 2021 03:52:54 +0000 (05:52 +0200)]
node-editor: Allow dragging and dropping the center picture

Dragging will just drag the render node.

Dropping will replace the current contents of the textview with the
dropped node.

Neat side effect: You can drag the node onto itself to do a
deserialize/serialize of the current text.

4 years agorecorder: Make the render nodes in the list draggable
Benjamin Otte [Fri, 20 Aug 2021 03:52:10 +0000 (05:52 +0200)]
recorder: Make the render nodes in the list draggable

You can (soon) drag any of the nodes directly into the node-editor.

4 years agodragicon: Add a default drag icon for GskRenderNode
Benjamin Otte [Fri, 20 Aug 2021 03:51:20 +0000 (05:51 +0200)]
dragicon: Add a default drag icon for GskRenderNode

Somebody should make this default drag icon machinery pluggable.

4 years agorendernode: Add (de)serialization support for render nodes
Benjamin Otte [Thu, 19 Aug 2021 22:30:04 +0000 (00:30 +0200)]
rendernode: Add (de)serialization support for render nodes

This includes our own new mime type for render nodes, too.

4 years agorendernode: Add GValue functions for render nodes
Benjamin Otte [Thu, 19 Aug 2021 21:36:16 +0000 (23:36 +0200)]
rendernode: Add GValue functions for render nodes

This is needed as GskRenderNode is its own fundamental type and has its
own GValue infrastructure. And I want to put render nodes into the
clipboard which uses GValues.

4 years agostylecontext: Remove unneeded headers
Benjamin Otte [Mon, 23 Aug 2021 05:06:25 +0000 (07:06 +0200)]
stylecontext: Remove unneeded headers

4 years agofontbutton: Destroy dialog in unrealize()
Benjamin Otte [Mon, 23 Aug 2021 03:55:56 +0000 (05:55 +0200)]
fontbutton: Destroy dialog in unrealize()

This way, we can be sure it's always using the right display.

We can also be sure that it doesn't leak.

4 years agofontbutton: Make sure the window is on the same display
Benjamin Otte [Mon, 23 Aug 2021 03:55:32 +0000 (05:55 +0200)]
fontbutton: Make sure the window is on the same display

We don't want the font buttons created by the inspector to run on the
default display.

4 years agoMerge branch 'wip/otte/symbolic-paintable' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 03:54:35 +0000 (03:54 +0000)]
Merge branch 'wip/otte/symbolic-paintable' into 'master'

Add GtkSymbolicPaintable

See merge request GNOME/gtk!3895

4 years agoMerge branch 'wip/otte/G_TYPE_POINTER' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 03:50:30 +0000 (03:50 +0000)]
Merge branch 'wip/otte/G_TYPE_POINTER' into 'master'

Get rid of G_TYPE_POINTER

See merge request GNOME/gtk!3900

4 years agosymbolicpaintable: Refactor default colors path
Benjamin Otte [Mon, 30 Aug 2021 02:56:43 +0000 (04:56 +0200)]
symbolicpaintable: Refactor default colors path

4 years agoicontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()
Benjamin Otte [Mon, 30 Aug 2021 02:52:47 +0000 (04:52 +0200)]
icontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()

With the new enum, the code looks much cleaner.

4 years agoenums: Add a GtkSymbolicColor enum
Benjamin Otte [Mon, 30 Aug 2021 02:32:22 +0000 (04:32 +0200)]
enums: Add a GtkSymbolicColor enum

That way we don't nedmagic numbres to index the colors array.

Use it in the symbolic paintable demo.

4 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 17:08:32 +0000 (17:08 +0000)]
Update Kazakh translation

(cherry picked from commit 37d2d407a192fc14df211ea57a788ffe3fd16762)

4 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 07:41:36 +0000 (07:41 +0000)]
Update Kazakh translation

(cherry picked from commit 9e62fd82ea130b4eca052bf1313910c44a221b7e)

4 years agosearchengine: Rename private headers
Benjamin Otte [Sun, 29 Aug 2021 04:10:31 +0000 (06:10 +0200)]
searchengine: Rename private headers

The code uses G_TYPE_POINTER and I got all sorts of scared.

4 years agofilesystemmodel: Don't use G_TYPE_POINTER
Benjamin Otte [Sun, 29 Aug 2021 03:56:31 +0000 (05:56 +0200)]
filesystemmodel: Don't use G_TYPE_POINTER

It's a GError, use G_TYPE_ERROR.

4 years agoplacessidebar: Don't use G_TYPE_POINTER
Benjamin Otte [Sun, 29 Aug 2021 02:48:49 +0000 (04:48 +0200)]
placessidebar: Don't use G_TYPE_POINTER

We have a type for lists of GFiles. We invented it for DND.

Keep the annotation info, so bindings don't have to know this.

4 years agopathbar: Use correct GType in signal
Benjamin Otte [Sun, 29 Aug 2021 02:47:50 +0000 (04:47 +0200)]
pathbar: Use correct GType in signal

4 years agogtk-demo: Add a symbolic paintable demo
Benjamin Otte [Sat, 28 Aug 2021 01:46:55 +0000 (03:46 +0200)]
gtk-demo: Add a symbolic paintable demo

Don't click the button!

4 years agogtk-demo: Explicitly pass nuclear icon colors
Benjamin Otte [Fri, 27 Aug 2021 21:44:42 +0000 (23:44 +0200)]
gtk-demo: Explicitly pass nuclear icon colors

4 years agogtk: Port icontheme to GtkSymbolicPaintable
Benjamin Otte [Fri, 27 Aug 2021 22:23:29 +0000 (00:23 +0200)]
gtk: Port icontheme to GtkSymbolicPaintable

4 years agogtk: Add the GtkSymbolicPaintable interface
Benjamin Otte [Fri, 27 Aug 2021 21:33:56 +0000 (23:33 +0200)]
gtk: Add the GtkSymbolicPaintable interface

4 years agobuild: Check that introspection is enabled for docs build
Benjamin Otte [Sun, 29 Aug 2021 00:47:34 +0000 (02:47 +0200)]
build: Check that introspection is enabled for docs build

4 years agodocs: Fix vfunc references
Benjamin Otte [Sun, 29 Aug 2021 02:27:58 +0000 (04:27 +0200)]
docs: Fix vfunc references

vfunc references should just use the object name, not the
class/interface/iface name.

4 years agoMerge branch 'text-selection-missing' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 21:21:02 +0000 (21:21 +0000)]
Merge branch 'text-selection-missing' into 'master'

ngl: Avoid a coordinate overflow

Closes #4214

See merge request GNOME/gtk!3897

4 years agongl: Avoid a coordinate overflow
Matthias Clasen [Sat, 28 Aug 2021 19:42:30 +0000 (15:42 -0400)]
ngl: Avoid a coordinate overflow

This was showing up as big text selections going
missing sporadically.

Fixes: #4214
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 17:18:21 +0000 (17:18 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Draw negatively sloped carets correctly

See merge request GNOME/gtk!3892

4 years agoMerge branch 'menu-accel' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 17:17:43 +0000 (17:17 +0000)]
Merge branch 'menu-accel' into 'master'

window: Prefer menu bars when handling F10

See merge request GNOME/gtk!3893

4 years agoMerge branch 'randr' into 'master'
Matthias Clasen [Sat, 28 Aug 2021 17:17:00 +0000 (17:17 +0000)]
Merge branch 'randr' into 'master'

x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events

See merge request GNOME/gtk!3894

4 years agox11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events
Ian Douglas Scott [Sat, 28 Aug 2021 00:57:01 +0000 (17:57 -0700)]
x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events

It seems these are sent with `xwindow` set to the root window, so this
was failing to find a surface and get the screen from that.

I'm not sure if there's a reason not to get the screen this way
elsewhere in the function, but it seems this should be correct.

This fixes the behavior of `gdk_x11_display_get_monitors()`, which
wasn't correctly changing when monitors were added or removed. For
instance, this python code was always showing the same number of
monitors when one was turned off and on, but updates correctly with this
change applied:

```python
import gi
gi.require_version("GLib", "2.0")
gi.require_version("Gdk", "4.0")
gi.require_version("Gtk", "4.0")
from gi.repository import GLib, Gdk, Gtk

def f():
    print(len(Gdk.Display.get_default().get_monitors()))
    return True
GLib.timeout_add_seconds(1, f)

GLib.MainLoop().run()
```

4 years agoUpdate Brazilian Portuguese translation
Enrico Nicoletto [Sat, 28 Aug 2021 01:00:26 +0000 (01:00 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit cd9735eab134810b8d7182f1f1bca86b27207514)

4 years agoUpdate Brazilian Portuguese translation
Enrico Nicoletto [Sat, 28 Aug 2021 00:44:25 +0000 (00:44 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit 8f5a1471cc3227e91dbb5b3d2c47f7c999d74201)

4 years agowindow: Prefer menu bars when handling F10
Florian Müllner [Fri, 27 Aug 2021 22:10:00 +0000 (00:10 +0200)]
window: Prefer menu bars when handling F10

Focusing the first widget in the titlebar is a good fallback,
but a "real" menubar or :primary menu button should take
precedence.

4 years agoDraw negatively sloped carets correctly
Matthias Clasen [Fri, 27 Aug 2021 21:19:04 +0000 (17:19 -0400)]
Draw negatively sloped carets correctly

The code for handling negatively sloped caret
positions was not tested, and naturally did
not work. Fix it.

4 years agoMerge branch 'css-line-decoration' into 'master'
Matthias Clasen [Fri, 27 Aug 2021 01:37:57 +0000 (01:37 +0000)]
Merge branch 'css-line-decoration' into 'master'

textview: Apply line decoration from css

See merge request GNOME/gtk!3890

4 years agoClean up the code
Matthias Clasen [Fri, 27 Aug 2021 00:45:17 +0000 (20:45 -0400)]
Clean up the code

Avoid compiler warnings, and make the code
a bit more compact.

4 years agotextview: Apply font features from css
Matthias Clasen [Fri, 27 Aug 2021 00:21:23 +0000 (20:21 -0400)]
textview: Apply font features from css

We were forgetting to propagate these values from
CSS to the default attributes. Share the code for
getting these values out of a GtkCssStyle.

4 years agotextview: Apply text transform from css
Matthias Clasen [Thu, 26 Aug 2021 22:53:30 +0000 (18:53 -0400)]
textview: Apply text transform from css

We were forgetting to propagate these values from
CSS to the default attributes.

4 years agotextview: Apply line decoration from css
Matthias Clasen [Thu, 26 Aug 2021 22:45:38 +0000 (18:45 -0400)]
textview: Apply line decoration from css

We were forgetting to propagate these values from
CSS to the default attributes.

4 years agoMerge branch 'css-letter-spacing' into 'master'
Matthias Clasen [Thu, 26 Aug 2021 19:37:55 +0000 (19:37 +0000)]
Merge branch 'css-letter-spacing' into 'master'

textview: Don't forget to collect css letterspacing

Closes #4207

See merge request GNOME/gtk!3889

4 years agotextview: Don't forget to collect css letterspacing
Matthias Clasen [Thu, 26 Aug 2021 19:01:23 +0000 (15:01 -0400)]
textview: Don't forget to collect css letterspacing

There are more properties missing, this is just
the start.

Fixes: #4207
4 years agoUpdate Indonesian translation
Andika Triwidada [Thu, 26 Aug 2021 14:40:03 +0000 (14:40 +0000)]
Update Indonesian translation

(cherry picked from commit 85ad1db8efaabace38cb9b37bfac1d729925b8ec)

4 years agoUpdate Portuguese translation
Hugo Carvalho [Thu, 26 Aug 2021 14:29:50 +0000 (14:29 +0000)]
Update Portuguese translation

(cherry picked from commit 6e467de751d83f3212d4e758b3d52abd555d5477)

4 years agoUpdate Portuguese translation
Hugo Carvalho [Thu, 26 Aug 2021 14:12:47 +0000 (14:12 +0000)]
Update Portuguese translation

(cherry picked from commit ae5b6395ade25da06da25157ed39e399db3a4061)

4 years agoUpdate Indonesian translation
Andika Triwidada [Thu, 26 Aug 2021 13:38:46 +0000 (13:38 +0000)]
Update Indonesian translation

(cherry picked from commit dcc899b6212aceca7c5687c6cd4a24214e84d27e)

4 years agoUpdated Czech translation
Marek Černocký [Thu, 26 Aug 2021 13:07:54 +0000 (15:07 +0200)]
Updated Czech translation

4 years agoMerge branch 'clang-fallthrough' into 'master'
Timm Bäder [Thu, 26 Aug 2021 11:15:28 +0000 (11:15 +0000)]
Merge branch 'clang-fallthrough' into 'master'

build: fix implicit-fallthrough errors with clang

See merge request GNOME/gtk!3887

4 years agoUpdate Catalan translation
Jordi Mas [Thu, 26 Aug 2021 11:10:32 +0000 (13:10 +0200)]
Update Catalan translation

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 26 Aug 2021 06:15:06 +0000 (06:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

More markup demos

See merge request GNOME/gtk!3888

4 years agobuild: fix implicit-fallthrough errors with clang
Christoph Reiter [Thu, 26 Aug 2021 03:14:18 +0000 (05:14 +0200)]
build: fix implicit-fallthrough errors with clang

The clang build fails due to -Werror=implicit-fallthrough being
on by default and some fallthrough cases not being marked as such.

Use G_GNUC_FALLTHROUGH or duplicate the code in those cases.

4 years agoMore markup demos
Matthias Clasen [Wed, 25 Aug 2021 23:38:59 +0000 (19:38 -0400)]
More markup demos

Showing more of what Pango can do.

4 years agoMerge branch 'new-pango-attributes' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 20:11:45 +0000 (20:11 +0000)]
Merge branch 'new-pango-attributes' into 'master'

Support new pango attributes

See merge request GNOME/gtk!3878

4 years agoMerge branch 'treeexpander-claim-gestures' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 19:11:23 +0000 (19:11 +0000)]
Merge branch 'treeexpander-claim-gestures' into 'master'

GtkTreeExpander: claim expander-icon gestures

Closes #4199

See merge request GNOME/gtk!3886

4 years agotextview: Implement new pango attributes
Matthias Clasen [Tue, 24 Aug 2021 16:47:12 +0000 (12:47 -0400)]
textview: Implement new pango attributes

Implement the word and sentence attributes.

4 years agoSupport new pango attributes
Matthias Clasen [Tue, 24 Aug 2021 16:48:40 +0000 (12:48 -0400)]
Support new pango attributes

Support new Pango attributes for segmentation
in GtkBuilder.

4 years agoGtkTreeExpander: claim expander-icon gestures
Jan Lukas Gernert [Wed, 25 Aug 2021 15:50:12 +0000 (17:50 +0200)]
GtkTreeExpander: claim expander-icon gestures

Claim the pressed, released and canceled gestures
meant for the expander-icon of the TreeExpander.
This avoids selecting the row when expanding or collapsing it.

Closes #4199

4 years agoMerge branch 'sloped-caret' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 13:43:24 +0000 (13:43 +0000)]
Merge branch 'sloped-caret' into 'master'

Implement sloped caret drawing

See merge request GNOME/gtk!3880

4 years agoUpdate Catalan translation
Jordi Mas [Wed, 25 Aug 2021 13:17:27 +0000 (15:17 +0200)]
Update Catalan translation

4 years agoMerge branch 'treeexpander-indent-property' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 11:48:59 +0000 (11:48 +0000)]
Merge branch 'treeexpander-indent-property' into 'master'

GtkTreeExpander: indent-without-expander property

Closes #4175

See merge request GNOME/gtk!3858

4 years agoMerge branch '4195-include-gdkprivate-h' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 11:48:11 +0000 (11:48 +0000)]
Merge branch '4195-include-gdkprivate-h' into 'master'

gdkmacoseventsource: Include "gdk-private.h"

Closes #4195

See merge request GNOME/gtk!3882

4 years agoUse pango_layout_get_caret_pos
Matthias Clasen [Tue, 24 Aug 2021 20:49:30 +0000 (16:49 -0400)]
Use pango_layout_get_caret_pos

This new api returns rectangles for sloped carets,
in contrast to pango_layout_get_cursor_pos, which
always returns a rectangle with a width of zero.

4 years agoImplement sloped caret drawing
Matthias Clasen [Mon, 23 Aug 2021 21:39:04 +0000 (17:39 -0400)]
Implement sloped caret drawing

Prepare for Pango to return slope information for carets.

While we are at it, improve the shape of our carets a bit.

4 years agoMerge branch 'fix-gettext' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 10:51:57 +0000 (10:51 +0000)]
Merge branch 'fix-gettext' into 'master'

Fix wrong gettext ITS target

See merge request GNOME/gtk!3881

4 years agoFix wrong gettext ITS target
Rafał Dzięgiel [Wed, 25 Aug 2021 08:08:44 +0000 (10:08 +0200)]
Fix wrong gettext ITS target

The installed ITS rule filename is "gtk4builder.its". The .loc file
is wrongly pointing to old "gtkbuilder.its" which makes gettext fail
on systems without GTK3 installed.

4 years agoUpdate Galician translation
Fran Dieguez [Wed, 25 Aug 2021 07:26:42 +0000 (07:26 +0000)]
Update Galician translation

(cherry picked from commit 410ea1049becedd78d6b267aee3a5bac1a0810c2)

4 years agoUpdate Galician translation
Fran Dieguez [Wed, 25 Aug 2021 06:12:31 +0000 (06:12 +0000)]
Update Galician translation

(cherry picked from commit 09a5828ccf90e460cc8b84560ca235cc7d22bbeb)

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Matthias Clasen [Wed, 25 Aug 2021 04:24:55 +0000 (04:24 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

wayland: Better error on eglGetDisplay() failure

See merge request GNOME/gtk!3879

4 years agogdkmacoseventsource: Include "gdk-private.h"
Peter Bloomfield [Tue, 24 Aug 2021 20:55:52 +0000 (16:55 -0400)]
gdkmacoseventsource: Include "gdk-private.h"

_gdk_macos_event_source_new() calls g_source_set_static_name(), which
for GLib versions before 2.69.1 is a macro defined in gdk-private.h.

Fixes #4195

modified:   gdk/macos/gdkmacoseventsource.c

4 years agowayland: Better error on eglGetDisplay() failure
Benjamin Otte [Tue, 24 Aug 2021 19:27:49 +0000 (21:27 +0200)]
wayland: Better error on eglGetDisplay() failure

Goals:

1. Provide as much information as possible in the error message, so
   users can try to fix their system themselves.
2. Try to formulate the error message in a way that explains that this
   is not something GTK can fix, but a lower layer problem.

Related: #4193

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Tue, 24 Aug 2021 17:28:48 +0000 (17:28 +0000)]
Update Ukrainian translation

(cherry picked from commit 6377b23bd6dafc736f849921ed0db6a0b8a9aadc)

4 years agoMerge branch 'wip/carlosg/gesture-state-in-entries' into 'master'
Matthias Clasen [Tue, 24 Aug 2021 17:20:20 +0000 (17:20 +0000)]
Merge branch 'wip/carlosg/gesture-state-in-entries' into 'master'

Claim clicks further at GtkEntry/GtkSearchEntry

See merge request GNOME/gtk!3873

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 24 Aug 2021 17:19:42 +0000 (17:19 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Revert "imwayland: Tweak preedit text"

Closes #4123

See merge request GNOME/gtk!3877

4 years agotests: Rewrite PangoAttribute introspection
Matthias Clasen [Tue, 24 Aug 2021 16:47:41 +0000 (12:47 -0400)]
tests: Rewrite PangoAttribute introspection

We can use the new binding helpers to make this
a little less bothersome. That way, it will need
tweaks less often (only when new fundamental types
are introduced).

4 years agoRevert "imwayland: Tweak preedit text"
Matthias Clasen [Tue, 24 Aug 2021 16:02:31 +0000 (12:02 -0400)]
Revert "imwayland: Tweak preedit text"

This reverts commit d84a028455cadbf146e4cd234f57dc1df2e69cd6.

IBus uses the same character now.

Fixes: #4123
4 years agoMerge branch 'expander-ref-leak' into 'master'
Emmanuele Bassi [Tue, 24 Aug 2021 13:20:48 +0000 (13:20 +0000)]
Merge branch 'expander-ref-leak' into 'master'

Release an extra reference on GtkExpander:child

See merge request GNOME/gtk!3876

4 years agoRelease an extra reference on GtkExpander:child
Emmanuele Bassi [Tue, 24 Aug 2021 00:11:15 +0000 (01:11 +0100)]
Release an extra reference on GtkExpander:child

The child of a GtkExpander is owned directly by the expander whenever
the "expanded" flag is unset.

We are adding an additional reference to the child of an expander when
expander is not expanded.

Additionally, if a GtkExpander is disposed while not expanded, we need
to explicitly release the reference on the child widget that we own.

This reference leak was masked in GTK3 by GtkContainer removing each
child from the parent container by recursively calling
gtk_widget_destroy().

4 years agogtkpasswordentry: Add a "catchall" click gesture handler
Carlos Garnacho [Mon, 23 Aug 2021 23:13:29 +0000 (01:13 +0200)]
gtkpasswordentry: Add a "catchall" click gesture handler

This gesture is set on the whole widget surface, since there's
multiple input targets inside an entry (icons, the GtkText itself)
it makes sense to consider the full entry an area handling clicks.
Ensure these events don't propagate further up, and result in other
actions.

4 years agogtkpasswordentry: Consume click events after pressing on icon
Carlos Garnacho [Mon, 23 Aug 2021 23:12:31 +0000 (01:12 +0200)]
gtkpasswordentry: Consume click events after pressing on icon

This may result in user actions, so the gesture should consume the
events.

4 years agoMerge branch 'fix-docs' into 'master'
Matthias Clasen [Mon, 23 Aug 2021 20:40:17 +0000 (20:40 +0000)]
Merge branch 'fix-docs' into 'master'

Fix documentation for gtk_icon_view_create_drag_icon

Closes #4190

See merge request GNOME/gtk!3875

4 years agodocs: Fix documentation for gtk_icon_view_create_drag_icon
Qiu Wenbo [Mon, 23 Aug 2021 16:24:08 +0000 (00:24 +0800)]
docs: Fix documentation for gtk_icon_view_create_drag_icon

Fixes: #4190
4 years agoMerge branch 'wip/kalev/pre-compiled-css-detection' into 'master'
Matthias Clasen [Mon, 23 Aug 2021 14:57:19 +0000 (14:57 +0000)]
Merge branch 'wip/kalev/pre-compiled-css-detection' into 'master'

build: Fix detection for pre-compiled css files

See merge request GNOME/gtk!3874

4 years agobuild: Fix detection for pre-compiled css files
Kalev Lember [Mon, 23 Aug 2021 13:38:46 +0000 (15:38 +0200)]
build: Fix detection for pre-compiled css files

The default theme changed from Adwaita to Default and this tripped up
the logic to detect if the tarball builds contain pre-built css files or
not. Fix this by looking at pre-compiled css files in themes/Default/
instead of themes/Adwaita/.

4 years agogtksearchentry: Add a "catchall" click gesture handler
Carlos Garnacho [Mon, 23 Aug 2021 13:33:32 +0000 (15:33 +0200)]
gtksearchentry: Add a "catchall" click gesture handler

This gesture is set on the whole widget surface, since there's
multiple input targets inside an entry (icons, the GtkText itself)
it makes sense to consider the full entry an area handling clicks.
Ensure these events don't propagate further up, and result in other
actions.

4 years agogtkentry: Add a "catchall" click gesture handler
Carlos Garnacho [Mon, 23 Aug 2021 13:31:37 +0000 (15:31 +0200)]
gtkentry: Add a "catchall" click gesture handler

This gesture is set on the whole widget surface, since there's
multiple input targets inside an entry (icons, the GtkText itself)
it makes sense to consider the full entry an area handling clicks.
Ensure these events don't propagate further up, and result in other
actions.

4 years agogtksearchentry: Consume click events after pressing on icon
Carlos Garnacho [Mon, 23 Aug 2021 13:30:21 +0000 (15:30 +0200)]
gtksearchentry: Consume click events after pressing on icon

This results in user actions, so the gesture should consume the
events.